home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Integers
/
Sign.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
264b
|
23 lines
// Sign.h
#ifndef Sign_h
#define Sign_h
template < class Value >
inline Value Abs( Value v )
{
return ( v < 0 ) ? -v : v;
}
template < class Value >
inline Value Sign( Value v )
{
return ( v > 0 )
? 1
: ( v < 0 )
? -1
: 0;
}
#endif